package com.weasel.weixin.commons.message.bean.initiative;

import com.weasel.weixin.commons.service.bean.CustomService;
import org.codehaus.jackson.annotate.JsonProperty;

/**主动发送消息的消息体
 * Created by Dylan on 2015/10/19.
 */
public abstract class AbstractCustomInitiativeMessage {

    @JsonProperty("touser")
    private String toUser;  //普通用户openid

    @JsonProperty("msgtype")
    private String msgType; //消息类型，文本为text，图片为image，语音为voice，视频消息为video，音乐消息为music，图文消息为news，卡券为wxcard

    @JsonProperty("customservice")
    private CustomService customservice;

    public AbstractCustomInitiativeMessage(String msgType) {
        this.msgType = msgType;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public CustomService getCustomservice() {
        return customservice;
    }

    public void setCustomservice(CustomService customservice) {
        this.customservice = customservice;
    }
}
